package com.xbongbong.saas.domain.entity;

import com.alibaba.fastjson.JSONArray;
import com.xbongbong.paas.toolbox.wrap.Entity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 部门Pk实体
 *
 * @author 徐俊杰
 * @version v1.0
 * @date 2019/3/20 15:26
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class DepartmentPkEntity extends Entity {
    private static final long serialVersionUID = -6701078391986760596L;

    public DepartmentPkEntity() {
        this.name = "";
        this.depIncludeSub = new JSONArray();
    }

    //========== properties ==========
    /**
     * 主键id
     */
    private Long id;
    /**
     * 公司id
     */
    private String corpid;
    /**
     * 方案名称
     */
    private String name;
    /**
     * 存放参与对比的各个部门，及它们是否包含下属部门。JsonArray格式的字符串，[{"id": depId,"name":"部门名","includeSub": true}]。true表示包含, false表示不包含
     */
    private JSONArray depIncludeSub;
    /**
     * 方案排序，从大到小排序
     */
    private Integer sort;
    /**
     * 创建时间
     */
    private Long addTime;
    /**
     * 更新时间
     */
    private Long updateTime;
    /**
     * 删除标记
     */
    private Integer del;
}
